package com.gdufs.secondhandwebsite.dao;

import com.gdufs.secondhandwebsite.entity.Post;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
/** 处理帖子数据的持久层接口 */
public interface PostMapper {

    int CreatePost(Post post);
    int DeletePostByPrimaryKey(Long postId);
    Post SelectPostByPrimaryKey(Long PostId);
    int UpdatePostSelective(Post Post);
    List<Post> getAllPost();

}
